Skip to content

Commit

Permalink
fixed problem on using parameters without secret
Browse files Browse the repository at this point in the history
Without secret, the request url missed `?` and resulted 404 response.
ochanje210 authored Jan 17, 2017
1 parent dc30956 commit 660456a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions firebase.coffee
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@ class exports.Firebase extends Framer.BaseClass
@debug = @options.debug ?= false
@_status ?= "disconnected"

@secretEndPoint = if @secret then "?auth=#{@secret}" else ""
@secretEndPoint = if @secret then "auth=#{@secret}" else ""
super

console.log "Firebase: Connecting to Firebase Project '#{@projectID}' ... \n URL: 'https://#{@projectID}.firebaseio.com'" if @debug
@@ -26,7 +26,7 @@ class exports.Firebase extends Framer.BaseClass

request = (project, secret, path, callback, method, data, parameters, debug) ->

url = "https://#{project}.firebaseio.com#{path}.json#{secret}"
url = "https://#{project}.firebaseio.com#{path}.json?#{secret}"


unless parameters is undefined

0 comments on commit 660456a

Please sign in to comment.