Set proper content type for logs requests
This commit is contained in:
parent
5d3333efd2
commit
eb2feca02a
|
@ -24,6 +24,7 @@ require 'travis/model'
|
|||
self = this
|
||||
Travis.ajax.ajax "/jobs/#{@get('job.id')}/log.txt", 'GET',
|
||||
dataType: 'text'
|
||||
contentType: 'text/plain'
|
||||
success: (data) ->
|
||||
self.set 'body', data
|
||||
self.set 'isLoaded', true
|
||||
|
|
|
@ -22,7 +22,7 @@ jQuery.support.cors = true
|
|||
options.url = "#{endpoint}#{url}"
|
||||
options.type = method
|
||||
options.dataType = options.dataType || 'json'
|
||||
options.contentType = 'application/json; charset=utf-8'
|
||||
options.contentType = options.contentType || 'application/json; charset=utf-8'
|
||||
options.context = this
|
||||
|
||||
if options.data && method != 'GET' && method != 'get'
|
||||
|
|
Loading…
Reference in New Issue
Block a user