Page MenuHomePhabricator

[keyserver] remove duplicate content-type application/json header in call to assignBlobHolder
ClosedPublic

Authored by will on Fri, Dec 6, 5:46 PM.

Details

Summary

Remove duplicate content type header in assign blob holder request to blob service.

In testing my farcaster bot, calls to createOrUpdatePublicLink were failing as it would eventually call assignBlobHolder with two duplicate content-type headers, resulting in a 400 Bad Request from the blob service.

We can fix this by specifying createRequestHeaders's includeContentType parameter as false

Linear Issue: https://linear.app/comm/issue/ENG-9986/running-into-an-issue-of-createorupdatepubliclink-failing-to-upload-a

Test Plan

In applying this change, the farcaster bot properly was able to upload invite link blobs without errors

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

will retitled this revision from [keyserver] remove duplicate content-type application/json header in call to assign blob holder to [keyserver] remove duplicate content-type application/json header in call to assignBlobHolder.Fri, Dec 6, 5:56 PM
will retitled this revision from [keyserver] remove duplicate content-type application/json header in call to assignBlobHolder to [keyserver] remove duplicate content-type application/json header in assignBlobHolder.
will retitled this revision from [keyserver] remove duplicate content-type application/json header in assignBlobHolder to [keyserver] remove duplicate content-type application/json header in call to assignBlobHolder.
will requested review of this revision.Fri, Dec 6, 6:05 PM
This revision is now accepted and ready to land.Fri, Dec 6, 6:53 PM