Skip to content

Commit 108ffc2

Browse files
authored
Add capability to ignore empty valued rpc http headers (worker v2.x) (#304)
1 parent b56070a commit 108ffc2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/WorkerChannel.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ export class WorkerChannel implements IWorkerChannel {
115115

116116
let workerCapabilities = {
117117
RpcHttpTriggerMetadataRemoved: "true",
118-
RpcHttpBodyOnly: "true"
118+
RpcHttpBodyOnly: "true",
119+
IgnoreEmptyValuedRpcHttpHeaders: "true"
119120
};
120121

121122
if (!this._v1WorkerBehavior) {

test/WorkerChannelTests.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ describe('WorkerChannel', () => {
107107
workerInitResponse: {
108108
capabilities: {
109109
'RpcHttpBodyOnly': 'true',
110-
'RpcHttpTriggerMetadataRemoved': 'true'
110+
'RpcHttpTriggerMetadataRemoved': 'true',
111+
'IgnoreEmptyValuedRpcHttpHeaders': 'true'
111112
},
112113
result: {
113114
status: rpc.StatusResult.Status.Success

0 commit comments

Comments
 (0)