Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed problem on using parameters without secret #4

Merged
merged 1 commit into from
Jan 18, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions firebase.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down