Skip to content

Commit

Permalink
add ~ files to .gitignore; add CORS headers
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisaaronland committed Jan 28, 2013
1 parent 42acddd commit 8d84ae8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -2,3 +2,4 @@ deploy.sh
target
data
.*.sw*
*~
1 change: 1 addition & 0 deletions src/main/java/com/hackdiary/geo/FlickrGeocodeServlet.java
Expand Up @@ -28,6 +28,7 @@ protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws Se
double lat = Double.parseDouble(req.getParameter("lat"));
double lng = Double.parseDouble(req.getParameter("lng"));
resp.setContentType("application/json");
resp.setHeader("Access-Control-Allow-Origin", "*");
ObjectMapper mapper = new ObjectMapper();
mapper.writerWithDefaultPrettyPrinter().writeValue(resp.getWriter(), geocode.geocode(lat, lng));
}
Expand Down

0 comments on commit 8d84ae8

Please sign in to comment.