Skip to content

Commit

Permalink
moved kMaxPayloadSizeForGet definition to C file
Browse files Browse the repository at this point in the history
  • Loading branch information
Makarand Dharmapurikar committed Sep 1, 2016
1 parent b94656d commit 3f37438
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/core/lib/channel/http_client_filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@
#define EXPECTED_CONTENT_TYPE "application/grpc"
#define EXPECTED_CONTENT_TYPE_LENGTH sizeof(EXPECTED_CONTENT_TYPE) - 1

/* default maximum size of payload eligable for GET request */
static const size_t kMaxPayloadSizeForGet = 2048;

typedef struct call_data {
grpc_linked_mdelem method;
grpc_linked_mdelem scheme;
Expand Down
1 change: 0 additions & 1 deletion src/core/lib/channel/http_client_filter.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,5 @@ extern const grpc_channel_filter grpc_http_client_filter;

/* Channel arg to determine maximum size of payload eligable for GET request */
#define GRPC_ARG_MAX_PAYLOAD_SIZE_FOR_GET "grpc.max_payload_size_for_get"
static const size_t kMaxPayloadSizeForGet = 2048;

#endif /* GRPC_CORE_LIB_CHANNEL_HTTP_CLIENT_FILTER_H */

0 comments on commit 3f37438

Please sign in to comment.