diff options
author | Matt Godbolt <matt@godbolt.org> | 2022-12-28 11:42:14 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-28 11:42:14 -0600 |
commit | 749319f7912ff479d25d9afb1e751f4ea704b0e2 (patch) | |
tree | 6f1504440fcdaf033dc406d454bb00299b0d8fa6 /lib/handlers/assembly-documentation.ts | |
parent | b597095f6ee657e6b1fde4b02f9bb2f61457d225 (diff) | |
download | compiler-explorer-749319f7912ff479d25d9afb1e751f4ea704b0e2.tar.gz compiler-explorer-749319f7912ff479d25d9afb1e751f4ea704b0e2.zip |
Slightly more controversial bumpings (#4503)gh-5552
- latest sentry, tar-stream, which, some yamljs versions
- latest eslint-* stuff
- latest webpack manifest
- Applies all the automatic fixes for newer lint rules
- Bump the webpack version
applies new tslint stuff
Diffstat (limited to 'lib/handlers/assembly-documentation.ts')
-rw-r--r-- | lib/handlers/assembly-documentation.ts | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/handlers/assembly-documentation.ts b/lib/handlers/assembly-documentation.ts index cc210f106..1bb980f48 100644 --- a/lib/handlers/assembly-documentation.ts +++ b/lib/handlers/assembly-documentation.ts @@ -44,15 +44,18 @@ const onDocumentationProviderRequest = ( // Accept either JSON or Plaintext Content-Type const requestedContentType = request.accepts(['text', 'json']); switch (requestedContentType) { - case 'text': + case 'text': { response.send(information.html); break; - case 'json': + } + case 'json': { response.send(information); break; - default: + } + default: { response.status(406).send({error: 'Not Acceptable'}); break; + } } }; |