Skip to content

Commit d6f6323

Browse files
committed
Set default content type to application/octet-stream
1 parent c3abe25 commit d6f6323

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

config/defaults.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module.exports = {
1414
'strictOrigin': true,
1515
'originsAllowed': ['https://apps.solid.invalid'],
1616
'dataBrowserPath': 'default',
17-
'defaultContentType': 'text/turtle'
17+
'defaultContentType': 'application/octet-stream'
1818

1919
// For use in Enterprises to configure a HTTP proxy for all outbound HTTP requests from the SOLID server (we use
2020
// https://www.npmjs.com/package/global-tunnel-ng).

test/integration/account-creation-oidc-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ describe('AccountManager (OIDC account creation tests)', function () {
166166
}
167167
var graph = $rdf.graph()
168168
$rdf.parse(
169-
data.text,
169+
data.body.toString(),
170170
graph,
171171
'https://nicola.' + host + '/.meta',
172172
'text/turtle')

test/integration/account-manager-test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ describe('AccountManager', () => {
3434
rootUrl: 'https://localhost:8443/',
3535
rootPath: process.cwd(),
3636
includeHost: multiuser,
37-
defaultContentType: 'text/turtle'
37+
defaultContentType: 'application/octet-stream'
3838
})
3939
let store = new LDP({ multiuser, resourceMapper })
4040
let options = { multiuser, store, host }
@@ -65,7 +65,7 @@ describe('AccountManager', () => {
6565
rootUrl: 'https://localhost:8443/',
6666
includeHost: multiuser,
6767
rootPath: path.join(testAccountsDir, 'tim.localhost'),
68-
defaultContentType: 'text/turtle'
68+
defaultContentType: 'application/octet-stream'
6969
})
7070
let store = new LDP({
7171
multiuser,
@@ -85,7 +85,7 @@ describe('AccountManager', () => {
8585
rootUrl: 'https://localhost:8443/',
8686
includeHost: multiuser,
8787
rootPath: testAccountsDir,
88-
defaultContentType: 'text/turtle'
88+
defaultContentType: 'application/octet-stream'
8989
})
9090
let store = new LDP({
9191
multiuser,
@@ -109,7 +109,7 @@ describe('AccountManager', () => {
109109
rootUrl: 'https://localhost:8443/',
110110
includeHost: multiuser,
111111
rootPath: testAccountsDir,
112-
defaultContentType: 'text/turtle'
112+
defaultContentType: 'application/octet-stream'
113113
})
114114
let store = new LDP({ multiuser, resourceMapper })
115115
let options = { host, multiuser, store, accountTemplatePath }

test/integration/http-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,9 +389,9 @@ describe('HTTP APIs', function () {
389389
})
390390

391391
describe('HEAD API', function () {
392-
it('should return content-type turtle by default', function (done) {
392+
it('should return content-type application/octet-stream by default', function (done) {
393393
server.head('/sampleContainer/blank')
394-
.expect('Content-Type', 'text/turtle; charset=utf-8')
394+
.expect('Content-Type', 'application/octet-stream; charset=utf-8')
395395
.end(done)
396396
})
397397
it('should have set content-type for turtle files',

test/integration/ldp-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ describe('LDP', function () {
244244
' dcterms:title "This is a magic type" ;' +
245245
' o:limit 500000.00 .', 'sampleContainer/magicType.ttl')
246246
247-
ldp.listContainer(path.join(__dirname, '../resources/sampleContainer/'), 'https://server.tld/resources/sampleContainer/', 'https://server.tld', '', 'text/turtle', function (err, data) {
247+
ldp.listContainer(path.join(__dirname, '../resources/sampleContainer/'), 'https://server.tld/resources/sampleContainer/', 'https://server.tld', '', 'application/octet-stream', function (err, data) {
248248
if (err) done(err)
249249
var graph = $rdf.graph()
250250
$rdf.parse(

test/unit/user-accounts-api-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ describe('api/accounts/user-accounts', () => {
3131
rootUrl: 'https://localhost:8443/',
3232
includeHost: multiuser,
3333
rootPath: testAccountsDir,
34-
defaultContentType: 'text/turtle'
34+
defaultContentType: 'application/octet-stream'
3535
})
3636
let store = new LDP({ multiuser, resourceMapper })
3737

0 commit comments

Comments
 (0)