8000 Fix content-type for JS APIs by graetzer · Pull Request #10225 · arangodb/arangodb · GitHub
[go: up one dir, main page]

Skip to content

Fix content-type for JS APIs #10225

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy sta 8000 tement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 14, 2019
Merged

Fix content-type for JS APIs #10225

merged 2 commits into from
Oct 14, 2019

Conversation

graetzer
Copy link
Contributor

Scope & Purpose

Fix response content-type

  • Bug-Fix for devel-branch (i.e. no need for backports?)
  • The behavior change can be verified via automatic tests

Testing & Verification

This change is already covered by existing tests, such as the http_server suite

http://jenkins01.arangodb.biz:8080/job/arangodb-matrix-pr/6692/

@graetzer graetzer added this to the devel milestone Oct 10, 2019
builder.add(currentHeader, VPackValue(item.second));
}
if (_contentType != ContentType::VPACK) { // fuerte uses VPack as default
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for content type "CUSTOM" this will write Content-Type: , because rest::contentTypeToString(CUSTOM) will return an empty string. Intentional?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perhaps we need a more comprehensive fix

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need to store a custom content type separately, or remove the special handling of the content-type altogether and handle it like all other headers.

@graetzer
Copy link
Contributor Author

@jsteemann jsteemann merged commit 2083ca8 into devel Oct 14, 2019
@jsteemann jsteemann deleted the bug-fix/js-content-type branch October 14, 2019 08:43
ObiWahn added a commit that referenced this pull request Oct 14, 2019
…ture/cpp17

* 'devel' of https://github.com/arangodb/arangodb: (46 commits)
  use automatic parsing so we can seamlessly switch HTTP / VST. (#10241)
  fix handling of VST urls in test (#10240)
  if we answer a head request, we mustn't create a body for errors (#10227)
  Move containers into their own folder and namespace. (#10244)
  when changing between leader and follower re-attempt connecting to circumvent OS resource shortages (#10243)
  Fix content-type for JS APIs (#10225)
  Feature/one shard clean up 2 (#10238)
  Fix dbserver locking and releasing for hotbackup. (#10177)
  Improve timings for hotbackup locking. (#10229)
  unintentionally broke something. fixed...
  throw parse error if we fail to parse the json document (#10226)
  Bug fix/improve stringutils performance (#10208)
  add option to talk to the SUT using VST (#10217)
  Doc - Added "log-output" example (#10207)
  fix it! (#10198)
  add missing include
  Bug fix/fix simple example dep proxy skip some regression test (#10213)
  fixed ui behaviour when replacing a foxx app (#9719)
  [devel] Fix document search (Ctrl+F/Cmd+F) (#10216)
  Convert many uses of ClusterComm to Fuerte (#10154)
  ...
ObiWahn added a commit that referenced this pull request Oct 14, 2019
…7-remove-mac-hack

* origin/feature/cpp17:
  use automatic parsing so we can seamlessly switch HTTP / VST. (#10241)
  fix handling of VST urls in test (#10240)
  if we answer a head request, we mustn't create a body for errors (#10227)
  Move containers into their own folder and namespace. (#10244)
  when changing between leader and follower re-attempt connecting to circumvent OS resource shortages (#10243)
  Fix content-type for JS APIs (#10225)
  Feature/one shard clean up 2 (#10238)
  Fix dbserver locking and releasing for hotbackup. (#10177)
  Improve timings for hotbackup locking. (#10229)
  unintentionally broke something. fixed...
  throw parse error if we fail to parse the json document (#10226)
  Bug fix/improve stringutils performance (#10208)
  add option to talk to the SUT using VST (#10217)
  Doc - Added "log-output" example (#10207)
  fix it! (#10198)
  add missing include
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0