diff --git a/exercises/chapter_1/chapter1_httprequest.zip b/exercises/chapter_1/chapter1_httprequest.zip deleted file mode 100644 index d67799b..0000000 Binary files a/exercises/chapter_1/chapter1_httprequest.zip and /dev/null differ diff --git a/exercises/chapter_1/chapter1_httprequest/src/main/java/com/fjordtek/chapter1_httprequest/Chapter1HttprequestApplication.java b/exercises/chapter_1/chapter1_httprequest/src/main/java/com/fjordtek/chapter1_httprequest/Chapter1HttprequestApplication.java index 17cbd74..9b0bf6e 100644 --- a/exercises/chapter_1/chapter1_httprequest/src/main/java/com/fjordtek/chapter1_httprequest/Chapter1HttprequestApplication.java +++ b/exercises/chapter_1/chapter1_httprequest/src/main/java/com/fjordtek/chapter1_httprequest/Chapter1HttprequestApplication.java @@ -3,6 +3,7 @@ package com.fjordtek.chapter1_httprequest; import org.springframework.boot.SpringApplication; + import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication diff --git a/exercises/chapter_1/chapter1_httprequest/src/main/java/com/fjordtek/chapter1_httprequest/web/HttpRequestHandler.java b/exercises/chapter_1/chapter1_httprequest/src/main/java/com/fjordtek/chapter1_httprequest/web/HttpRequestHandler.java index dd17eb2..256fe6c 100644 --- a/exercises/chapter_1/chapter1_httprequest/src/main/java/com/fjordtek/chapter1_httprequest/web/HttpRequestHandler.java +++ b/exercises/chapter_1/chapter1_httprequest/src/main/java/com/fjordtek/chapter1_httprequest/web/HttpRequestHandler.java @@ -97,14 +97,12 @@ public class HttpRequestHandler { * Multiple parameters given (see that 'method' can have multiple values assigned * Just a brief example/demonstration * NOTE: MIME type 'x-www-form-urlencoded' works with curl, at least. Change it if needed. - * curl 'http://localhost:8080/hello' --data 'location=moon&name=John' + * curl 'http://localhost:8080/index' --data 'location=moon&name=John' * */ @RequestMapping( value = { helloPageURL }, - method = { RequestMethod.POST }, - produces = { "application/html" }, - consumes = "application/x-www-form-urlencoded", + method = { RequestMethod.GET }, params = { "location", "name" } ) public ResponseEntity getNameAndLocation(