Slight refactoring/renaming

This commit is contained in:
Matthew Holt
2015-02-07 22:17:15 -07:00
parent 0e43271cc9
commit 634b8b707f
4 changed files with 13 additions and 11 deletions
+1 -1
View File
@@ -106,7 +106,7 @@ func (p *parser) parseOne() error {
// This function should be called only after p has filled out
// p.other and that the entire server block has been consumed.
func (p *parser) unwrap() error {
for directive := range registry.directiveMap {
for _, directive := range registry.ordered {
if disp, ok := p.other[directive]; ok {
if generator, ok := registry.directiveMap[directive]; ok {
mid, err := generator(disp)