Skip to content

Commit

Permalink
minor stdlib fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kustosz committed Jan 14, 2018
1 parent 8539410 commit 6407ebb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions stdlib/Std/src/Geo.luna
@@ -1,13 +1,13 @@
import Std.Base

class GeoJSONFeature:
properties :: Map Text JSON
properties :: JSON
geometry :: JSON

def toJSON: Tip . insert "type" (JSONString "Feature") . insert "properties" self.properties.toJSON . insert "geometry" self.geometry . toJSON
def toJSON: JSON . empty . insert "type" "Feature" . insert "properties" self.properties . insert "geometry" self.geometry

class GeoJSONFeatureCollection:

features :: List GeoJSONFeature

def toJSON: Tip . insert "type" (JSONString "FeatureCollection") . insert "features" self.features.toJSON . toJSON
def toJSON: JSON . empty . insert "type" "FeatureCollection" . insert "features" self.features
2 changes: 1 addition & 1 deletion stdlib/Std/src/HTTP.luna
Expand Up @@ -115,7 +115,7 @@ class HttpRequest:
## a valid Http header name, like `Accept-Charset` (but the case
## does not matter).
def addHeader key val: case self of
HttpRequest uri method _ auth oauth1 params body:
HttpRequest uri method headers auth oauth1 params body:
HttpRequest uri method (headers.insert key val) auth oauth1 params body

## Use the provided username and password as `HttpBasicAuth`.
Expand Down

0 comments on commit 6407ebb

Please sign in to comment.