Граф коммитов

2260 Коммитов

Автор SHA1 Сообщение Дата
Charlie Barto 411a109150 mint 2.10.19 2023-12-04 20:23:31 -08:00
Charlie Barto 096a9a1bb3
Merge pull request #1782 from microsoft/fix_uri_parsing
make Uri.is_host_loopback() only return true for localhost and 127.0.0.1 exactly
2023-12-04 20:05:47 -08:00
Charlie Barto 006271f6a7 make Uri.is_host_loopback() only return true for localhost and 127.0.0.1 exactly 2023-12-04 19:58:39 -08:00
Charlie Barto 9c654889ef
Remove email list from the readme
It's better to use issues, so everyone can see the responses.
2022-11-16 13:07:45 -08:00
Charlie Barto 31e7feacc9
Merge pull request #1718 from dashanji/Fix-typo
Fix typo
2022-10-18 15:21:28 -07:00
Charlie Barto e1b6a8e61d
Merge pull request #1711 from Fighter19/pr-fix-safeint3
Fix likely typo in SafeInt3.hpp, that results in error with clang 15
2022-10-18 15:20:35 -07:00
Charlie Barto c5dcbb5bb9
Merge pull request #1717 from microsoft/users/GitHubPolicyService/f2ee14d6-8d6b-4313-b754-3880e015f7c3
Adding Microsoft SECURITY.MD
2022-10-06 15:11:22 -07:00
Ye Cao 98ee36dacd
Fix typo 2022-09-19 22:50:48 +08:00
microsoft-github-policy-service[bot] a57f459187
Microsoft mandatory file 2022-08-31 15:23:18 +00:00
Fighter19 3308d97280 Fix likely typo in SafeInt3.hpp, that results in error with clang 15 2022-07-01 14:19:04 +02:00
Charlie Barto 07cf589108
Merge pull request #1429 from NN---/fix/value_int_ctor
Add constructor from all integer types. Previously one was lacking for `long` which has identical conversion rank to both long long and unsigned long long.
2022-03-10 12:42:21 -08:00
NN 3eac925ada
Update Release/include/cpprest/json.h
Co-authored-by: Charlie Barto <chbarto@microsoft.com>
2022-03-10 22:38:30 +02:00
NN 06363bc783
Update Release/include/cpprest/json.h
Co-authored-by: Charlie Barto <chbarto@microsoft.com>
2022-03-10 22:38:13 +02:00
Charlie Barto bfe3487791
Merge pull request #1577 from JvdGlind/hidden_visibility_support_macos
export http_exception for non Windows builds
2021-03-11 13:05:17 -08:00
Charlie Barto 0ddc618294
Clarify cpprestsdk level of support 2021-03-08 11:37:25 -08:00
Jeffrey van de Glind 8044480589 export http_exception for non Windows builds
If a project compiled with clang for macos links to CppRest, and the
-fvisibility=hidden compiler option is used, the http_exception is used
as std::exception. The clang compiler requires it to be exported in
order to know about the symbols.

Since the Visual Studio compiler throws warnings regarding the export of
a class that inherits from a non-exported class, std::exception in this
case, this export is only defined for clang.
2021-03-03 11:09:50 +01:00
Charlie Barto d9d7f5ed4f
Merge pull request #1496 from icherniukh/oauth2_client_credentials
Support for oauth2 with "client_credentials" grant type
2021-02-26 01:15:52 -08:00
Charlie 122d095492 mint 2.10.18 2021-02-01 20:03:00 -08:00
Charlie 977769e8f3 fix macos-vcpkg pipelines 2021-02-01 19:50:19 -08:00
Charlie c8bf3357a7 Merge branch 'master' of https://github.com/microsoft/cpprestsdk 2021-02-01 11:13:30 -08:00
Charlie 42dbc767f0 add boost locale vcpkg to CI builds. 2021-02-01 11:13:23 -08:00
Charlie Barto 7876d75088
Merge pull request #1571 from BillyONeal/filetime_zero
Added the ability to parse and emit the NT Epoch 1601-01-01T00:00:00Z
2021-01-28 20:22:18 -08:00
Billy Robert O'Neal III a3da3e9fe3 Added the ability to parse years back to 1601 to support the NT epoch. 2021-01-25 20:51:18 -08:00
Billy Robert O'Neal III faa72d6847 Introduce new API from_string_maximum_error so that legitimate 1601 can be distinguished from parse failure. 2021-01-25 20:15:04 -08:00
Billy Robert O'Neal III 7046d3a996 Add ability to emit the NT epoch. 2021-01-25 19:53:37 -08:00
Billy Robert O'Neal III 880e535ccb Fix VS2019 build warning caused by mixing floating point types. 2021-01-25 18:57:34 -08:00
Billy Robert O'Neal III 3eb3c41211 Update vcpkg. 2021-01-25 18:48:55 -08:00
Charlie Barto 41e7d0074b
Merge pull request #1551 from barcharcraz/make-release-2.10.17
mint 2.10.17
2020-12-30 20:18:36 -08:00
Charlie 5fda55ae2d mint 2.10.17 2020-12-30 20:10:44 -08:00
Charlie Barto fca7ac8975
Merge pull request #1550 from BillyONeal/fix_leap_year_last_day
Fix year calculation for the last day of a leap year.
2020-12-30 20:01:10 -08:00
Billy Robert O'Neal III 198b034679 Fix year calculation for the last day of a leap year. 2020-12-30 19:46:21 -08:00
Ivan Cherniukh 8ae5da616d
Update oauth2.h
indentation correction
2020-12-15 13:57:00 -08:00
Charlie Barto eb6801fa65
Update README.md
Remove the direct contact link, since it goes to a very old email list that we're shutting down in favor of monitoring issues more consistently
2020-12-10 16:12:55 -08:00
Charlie Barto e05fede67c
Merge pull request #1520 from sighingnow/ht/std_format_macro
Define __STDC_FORMAT_MACROS when it hasn't been defined to avoid duplicate define error.
2020-11-03 13:42:56 -08:00
Charlie Barto cfc6efe621
Merge pull request #1523 from Milerius/patch-1
[MacOS]: fix wrong linking of Apple Frameworks
2020-11-03 13:41:44 -08:00
Sztergbaum Roman dbb55638b2
[MacOS]: fix wrong linking of Apple Frameworks
see #1522
2020-10-26 13:27:33 +01:00
Tao He 6ed6d67c80 Define __STDC_FORMAT_MACROS when it hasn't been defined to avoid duplicate define error.
Signed-off-by: Tao He <linzhu.ht@alibaba-inc.com>
2020-10-22 16:06:55 +08:00
Ivan Cherniukh 708a5df2bb Add support for oauth2 using only client credentials 2020-09-09 09:09:04 -07:00
NN 5408f1dc96 Add constructor from all integer types.
Fixes #1428
2020-05-23 17:07:50 +03:00
Billy O'Neal 7fbb08c491
Delete apparently broken .vcxprojs and .pfxes. (#1415) 2020-05-10 16:29:07 -07:00
Billy O'Neal 18212a2a79
Mint v2.10.16. (#1395) 2020-04-24 17:44:16 -07:00
Clovis Durand 319dd31f7b
CMake fixes + CMake search for OpenSSL (macOS) (#1383)
Signed-off-by: Clovis Durand <cd.clovel19@gmail.com>
Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
2020-04-24 16:53:50 -07:00
Wolfgang Stöggl b07011d3ab
Update submodule websocketpp to 0.8.2 (#1392)
* Update submodule websocketpp to 0.8.2

- Update to WebSocket++/0.8.2
  commit 56123c87598f8b1dd471be83ca841ceae07f95ba
- Fixes build issues with boost 1.70 and newer

* Update vcpkg.

* Remove defunct VS2015 configurations.

Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
2020-04-23 19:13:27 -07:00
Gareth Sylvester-Bradley 538dd497bc
Do not report errors (such as EBADF and EINVAL) from setsockopt here, since this is a performance optimization only, and hard errors will be picked up by the following operation (#1393) 2020-04-23 16:51:31 -07:00
Gareth Sylvester-Bradley e18f6f2f90
Fix compilation with GCC 4.8/4.9, which was broken by commit 53fab3aa12. (#1379) 2020-04-23 16:50:54 -07:00
Gareth Sylvester-Bradley f4124a9ee1
Add support for HTTP redirection in ASIO and WinHTTP-based http_clients (#1328) 2020-03-31 21:57:39 -07:00
Gareth Sylvester-Bradley 1d7550f5d4
Fix more http test build fails in certain configurations (#1332) 2020-03-31 16:22:47 -07:00
Gareth Sylvester-Bradley 6d0e2b73af
Remove redundant std::move noted by gcc 9.2 (-Wredundant-move) (#1370) 2020-03-31 16:21:51 -07:00
Dmitry Tsarevich 927afad909
Static analyzer (PVS Studio) fixes (#1372)
* [init] Initialize stream mode to in by default

* [leak] Fix memory leak of server api ptr

Should call delete on pointer instead of releasing it to the caller.

* [macro] Ensure priority of macro computation

Enclose macro args in round brackets to ensure operators priority.

* [prep] Fix comment after preprocessor macro

* [ub] Use typed pointer in delete operation

* Delete of void pointer is UB.  See section 5.3.5/3.  SO question:
https://stackoverflow.com/questions/941832/is-it-safe-to-delete-a-void-pointer
* Windows APIs used here return FALSE in case of failure, and
non-FALSE on success.  There is no info in spec that only TRUE
value indicates success.  Correct way to implement check for
success call is to compare with false like result != FALSE.

* [fmt] Fix military RFC1123 time format parsing

Ensure + or - sign is used for time zone offset in RFC1123 military
time format.

* Remove redundant != FALSE.

Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
2020-03-31 16:02:07 -07:00
Gareth Sylvester-Bradley cdae258bfb
[#1349] Expose json::value::parse for UTF8 string on Windows (#1350) 2020-03-02 15:00:16 -08:00