GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix a typo (#794) · micheldavid/java-docs-samples@1bd7b96

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • appengine-java8/gaeinfo/src/main/java/com/example/appengine/standard
    • GaeInfoServlet.java
  • flexible/gaeinfo/src/main/java/com/example/appengine/flex_compat
    • GaeInfoServlet.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎appengine-java8/gaeinfo/src/main/java/com/example/appengine/standard/GaeInfoServlet.java‎

Copy file name to clipboardExpand all lines: appengine-java8/gaeinfo/src/main/java/com/example/appengine/standard/GaeInfoServlet.java
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ public class GaeInfoServlet extends HttpServlet {
6767
};
6868

6969
private final String metadata = "http://metadata.google.internal";
70+
7071
private TemplateEngine templateEngine;
7172

7273
// Use OkHttp from Square as it's quite easy to use for simple fetches.
@@ -88,7 +89,7 @@ String fetchMetadata(String key) throws IOException {
8889
.addHeader("Metadata-Flavor", "Google")
8990
.get()
9091
.build();
91-
92+
9293
Response response = ok.newCall(request).execute();
9394
return response.body().string();
9495
}
@@ -193,7 +194,7 @@ public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOExc
193194

194195
m = new TreeMap<>();
195196
for (String k : metaPath) {
196-
m.put(k, fetchMetadata(key));
197+
m.put(k, fetchMetadata(k));
197198
}
198199
ctx.setVariable("Metadata", m.descendingMap());
199200

Collapse file

‎flexible/gaeinfo/src/main/java/com/example/appengine/flex_compat/GaeInfoServlet.java‎

Copy file name to clipboardExpand all lines: flexible/gaeinfo/src/main/java/com/example/appengine/flex_compat/GaeInfoServlet.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOExc
193193

194194
m = new TreeMap<>();
195195
for (String k : metaPath) {
196-
m.put(k, fetchMetadata(key));
196+
m.put(k, fetchMetadata(k));
197197
}
198198
ctx.setVariable("Metadata", m.descendingMap());
199199

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.