You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by da...@apache.org on 2018/02/08 15:52:13 UTC
[incubator-trafficcontrol] 02/03: make api/1.2/servers return a 404
on an id parse error to match perl
This is an automated email from the ASF dual-hosted git repository.
dangogh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-trafficcontrol.git
commit 0c07ec8f67e6fb5b85aad0e395e10e071e2db9ca
Author: Dylan Volz <Dy...@comcast.com>
AuthorDate: Wed Feb 7 15:38:15 2018 -0700
make api/1.2/servers return a 404 on an id parse error to match perl
---
traffic_ops/traffic_ops_golang/servers.go | 1 +
1 file changed, 1 insertion(+)
diff --git a/traffic_ops/traffic_ops_golang/servers.go b/traffic_ops/traffic_ops_golang/servers.go
index 9f8bc4f..64e3526 100644
--- a/traffic_ops/traffic_ops_golang/servers.go
+++ b/traffic_ops/traffic_ops_golang/servers.go
@@ -21,6 +21,7 @@ package main
import (
"encoding/json"
+ "errors"
"fmt"
"net/http"
"strconv"
--
To stop receiving notification emails like this one, please contact
dangogh@apache.org.