forked from hound-search/hound
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A better fix for the json marshalling/unmarshalling of vcs-config.
The issue I ran into earlier was simple, I needed VcsConfig to be a *json.RawMessage instead of a json.RawMessage. But I did not want to just fix that because it would have sent the vcs-config as JSON to the client exposing any credentials that are stored there. I use a trick here where I create a special type like json.RawMessage that will preserve bytes in Unmarshal, but just emit {} in marshal.
- Loading branch information
Kelly Norton
committed
Mar 12, 2015
1 parent
81f58a3
commit 851b9cc
Showing
3 changed files
with
31 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters