Skip to content

Commit

Permalink
fixup! fix: keep support for text/plain
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Sep 21, 2021
1 parent 117a619 commit 494c28e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/share-socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,12 +232,12 @@ describe('share-socket', function () {
it('should allow encoding with \'Content-Format\'', function (done) {
const req = coap.request('coap://localhost:' + port)

req.setOption('Content-Format', 'text/plain')
req.setOption('Content-Format', 'application/json; charset=utf8')
req.end()

server.on('request', function (req) {
expect(req.options[0].name).to.equal('Content-Format')
expect(req.options[0].value).to.equal('text/plain; charset=utf-8')
expect(req.options[0].value).to.equal('application/json')
done()
})
})
Expand Down

0 comments on commit 494c28e

Please sign in to comment.