Skip to content

Commit

Permalink
temporary fix for unneccessary http wrappers causing problems with php
Browse files Browse the repository at this point in the history
  • Loading branch information
SendFlo committed Jan 14, 2019
1 parent dbe062b commit c1a420f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
4 changes: 2 additions & 2 deletions private/version.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"timestamp": "14-01-2019 15:07",
"timestamp": "14-01-2019 16:59",
"version": "v0.0.7.9",
"commit": "5b1f1a030cf7124c9b37d8d29763c08d08460d0f"
"commit": "dbe062b0ef5723b603ca50119560c94604048ab8"
}
16 changes: 14 additions & 2 deletions server/api/http.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
import { Meteor } from 'meteor/meteor';
import { HTTP } from 'meteor/http'

//Wrapping the HTTP.get method is not neccessary, it calls the function syncronous if there is no callback function anyway.
//wrapping instead caused problems when calling php-files
//TODO: remove unneccessary wrapping


//Don't use this!
//export function getHttpGETerror(url, query) {
// const syncFunc = Meteor.wrapAsync(_get);
// return syncFunc(url, query);
//}


//This is only a temporary fix
export function getHttpGET(url, query) {
const syncFunc = Meteor.wrapAsync(_get);
return syncFunc(url, query);
return HTTP.get(url, {query: query});
}

export function getHttpGETdata(url, data) {
Expand Down

0 comments on commit c1a420f

Please sign in to comment.