Skip to content

Commit 42d008d

Browse files
committed
Merge from TFS
1 parent 8a8d338 commit 42d008d

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

Release/include/cpprest/json.h

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ namespace web { namespace json
431431
/// </summary>
432432
/// <param name="key">The name of the field</param>
433433
/// <returns>The value kept in the field; null if the field does not exist</returns>
434-
CASABLANCA_DEPRECATED("This API is deprecated and will be removed in a future release, use operator[] instead.")
434+
CASABLANCA_DEPRECATED("This API is deprecated and will be removed in a future release, use json::value::at() instead.")
435435
value get(const utility::string_t &key) const;
436436

437437
/// <summary>
@@ -469,13 +469,6 @@ namespace web { namespace json
469469
/// <returns>A reference to the value kept in the field.</returns>
470470
_ASYNCRTIMP value & operator [] (const utility::string_t &key);
471471

472-
/// <summary>
473-
/// Accesses a field of a JSON object.
474-
/// </summary>
475-
/// <param name="key">The name of the field</param>
476-
/// <returns>A reference to the value kept in the field.</returns>
477-
_ASYNCRTIMP const value & operator [] (const utility::string_t &key) const;
478-
479472
#ifdef _MS_WINDOWS
480473
private:
481474
// Only used internally by JSON parser
@@ -492,7 +485,7 @@ namespace web { namespace json
492485
/// </summary>
493486
/// <param name="key">The index of an element in the JSON array</param>
494487
/// <returns>The value kept at the array index; null if outside the boundaries of the array</returns>
495-
CASABLANCA_DEPRECATED("This API is deprecated and will be removed in a future release, use operator[] instead.")
488+
CASABLANCA_DEPRECATED("This API is deprecated and will be removed in a future release, use json::value::at() instead.")
496489
value get(size_t index) const;
497490

498491
/// <summary>

Release/tests/Functional/http/listener/response_stream_tests.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ TEST_FIXTURE(uri_address, reply_transfer_encoding_4k)
272272
listener.close().wait();
273273
}
274274

275+
// Fails sporadically, TFS 906957
275276
TEST_FIXTURE(uri_address, reply_chunked_4k)
276277
{
277278
web::http::experimental::listener::http_listener listener(m_uri);

0 commit comments

Comments
 (0)